package edu.sandau.f210153.f21010108.repository;

import edu.sandau.f210153.f21010108.model.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Optional;

public interface ProductRepository extends JpaRepository<Product,Long> {
    List<Product> findByNameContaining(String name);
    Optional<Product> findById(Long id);
    List<Product> findAll();
}
